<?php
include("../inc/Function.php");
if($_SESSION['a']['alevel']!=5 && $power['lylb']!=1){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}
$psize = 10;
$page = isset($_GET['page'])?$_GET['page']:1;
$list = messagelist($page,$psize);
$num = messagenum();
$page1 = page1($num,$psize,$page);
if($list){
    $msg = 1;
}else{
    $msg = 0;
}
$tpl->assign('msg',$msg);
$tpl->assign('mlist',$list);
$tpl->assign('page',$page1);
$tpl->show('messagelist');
?>